function SearchResult(id, parentDivId){
	this.id = id;
	this._initilaize(parentDivId);
}

SearchResult.prototype = {
	_initilaize : function(parentDivId){
		$('#' + parentDivId).append('<div id="' + this.id + '"></div>');
	},
	empty : function(){
		$("#" + this.id).empty();
	},
	prepend : function(tweet){
		var unit = this._createTweetUnit(tweet);
		$("#" + this.id).prepend(unit);
	},
	append : function(tweet){
		var unit = this._createTweetUnit(tweet);
		$("#" + this.id).append(unit);
	},
	appendNextTweet : function(){
		var unit = '';
		unit += '<div class="tweet_unit" data-theme="a" data-content-theme="a">';
		unit += '次を見る';
		unit += '</div>';
		$("#" + this.id).append(unit);
	},
	_replaceLink : function(link){
		link = replaceAll(link, "&lt;", "<");
		link = replaceAll(link, "&quot;", "\"");
		link = replaceAll(link, "&gt;", ">");
		return link;
	},
	_createTweetUnit : function(tweet){
		var unit = '';
		unit += '<div timeline-id="' + tweet.id_str + '" class="tweet_unit" data-theme="a" data-content-theme="a">';
		unit += '<img user-id="' + tweet.from_user_id_str +  '" src="' + tweet.profile_image_url + '">';
			unit += '<div class="right_tweet_area">';
				unit += '<table><tr><td><div class="username">' + tweet.from_user + '</div></td>';
				unit += '<td><div class="created_at">' + date(tweet.created_at) + '</div></td></tr></table>';
				unit += '<div class="tweet">' + replaceLink(tweet.text) + '</div>';
				unit += '<div class="buttom_line">';
					unit += '<div class="address">' + this._replaceLink(tweet.source) + '</div>';
					unit += '</div>';
				unit += '</div>';
				unit += '<div style="clear:both;"></div>';
			unit += '</div>';
		unit += '</div>';
		return unit;
	}
};